//这个函数将时间戳转换为标准时间

export const convertTime=(timestamp)=>{
	//接受一个时间戳 返回日期字符串
	    
	    let date = new Date(timestamp * 1000);
	    let year = date.getFullYear();
	    let month = ("0" + (date.getMonth() + 1)).slice(-2);
	    let day = ("0" + date.getDate()).slice(-2);
	    let formattedDate = year + "-" + month + "-" + day;
	   
		return formattedDate
	  }
	  
	export default {
		convertTime
	}